package com.itheima.domain;

import java.util.List;

/**
 * 班级对象
 */
public class Classes {
    private Integer cid;
    private String cname;


    private List<Student> studentList;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    @Override
    public String toString() {
        return "班级信息：" +"班级序号" + cid +", 班级名称" + cname +", 班级所有学生" + studentList;
    }
}
